Skip to content
This repository has been archived by the owner on Jan 8, 2020. It is now read-only.

[2.1] fixed tons of missing/wrong use statements #3496

Merged
merged 7 commits into from Jan 21, 2013
Merged

[2.1] fixed tons of missing/wrong use statements #3496

merged 7 commits into from Jan 21, 2013

Conversation

marc-mabe
Copy link
Member

On the following errors I need help to resolve

  • Zend\Db\Metadata\Source\AbstractSource uses the not existing class Object\ConstraintKeyObject
  • Zend\XmlRpc\Server\Exception\Stdin::____construct() uses new ServerException which is defined as use Zend\XmlRpc\Server\Exception as ServerException
  • Zend\XmlRpc\AbstractValue::_phpVarToNativeXmlRpc checks against the not existing class Zend\Math\BigInteger

@@ -180,7 +181,7 @@ public function getRequest()

/**
* Get the application response object
* @return \Zend\Stdlib\ResponseInterface
* @return ResponseInterface
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think we do not add a use just for something that is in a comment (at least someone told me not to do one day).

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@bakura10 We often do this to make the comments more readable and coherent.
Since phpdoc and most ides resolve them based on the imports/namespace,
they continue to document correctly. Since PHP does not expand an import or
try to autoload it unless the code actually references it, it's a no-op for
the engine.

On Saturday, January 19, 2013, Michaël Gallego wrote:

In library/Zend/Test/PHPUnit/Controller/AbstractControllerTestCase.php:

@@ -180,7 +181,7 @@ public function getRequest()

 /**
  * Get the application response object
  • \* @return \Zend\Stdlib\ResponseInterface
    
  • \* @return ResponseInterface
    

I think we do not add a use just for something that is in a comment (at
least someone told me not to do one day).


Reply to this email directly or view it on GitHubhttps://github.com//pull/3496/files#r2706310.

Matthew Weier O'Phinney
matthew@weierophinney.net
http://mwop.net/

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Doing this we miss the possibility of scan use statements for detect direct dependencies

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@weierophinney weierophinney merged commit c7b9777 into zendframework:develop Jan 21, 2013
@ghost ghost assigned weierophinney Jan 21, 2013
@marc-mabe
Copy link
Member Author

@weierophinney @Maks3w What about the unresolved errors I wrote about in PR description?

@Maks3w
Copy link
Member

Maks3w commented Jan 21, 2013

@marc-mabe Can you open different issues for that?

weierophinney added a commit to zendframework/zend-test that referenced this pull request May 15, 2015
weierophinney added a commit to zendframework/zend-stdlib that referenced this pull request May 15, 2015
weierophinney added a commit to zendframework/zend-xmlrpc that referenced this pull request May 15, 2015
weierophinney added a commit to zendframework/zend-http that referenced this pull request May 15, 2015
weierophinney added a commit to zendframework/zend-session that referenced this pull request May 15, 2015
weierophinney added a commit to zendframework/zend-log that referenced this pull request May 15, 2015
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants